<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>员工详细信息</h1>
<table border="1">
  <tr>
    <td>编号</td>
    <td>姓名</td>
    <td>职位</td>
    <td>工资</td>
  </tr>
 <tr th:each="em:${employee}">
     <td th:text="${em.empno}"></td>
     <td th:text="${em.ename}"></td>
     <td th:text="${em.job}"></td>
     <td th:text="${em.salary}"></td>
 </tr>
</table>
<h3>该员工的上司信息</h3>
<table border="1">
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>职位</td>
        <td>工资</td>
    </tr>
    <tr th:each="em:${employee}">
        <td th:text="${em.leader.empno}"></td>
        <td th:text="${em.leader.ename}"></td>
        <td th:text="${em.leader.job}"></td>
        <td th:text="${em.leader.salary}"></td>
    </tr>
</table>
<h3>该员工的下属信息</h3>
<table border="1">
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>职位</td>
        <td>工资</td>
    </tr>
    <tr th:each="employees:${employee.employees}">
        <td th:text="${employees.empno}"></td>
        <td th:text="${employees.ename}"></td>
        <td th:text="${employees.job}"></td>
        <td th:text="${employees.salary}"></td>
    </tr>
</table>
</body>
</html>